package org.cheniy.infrastructure.persistent.dao;


import org.apache.ibatis.annotations.Mapper;
import org.cheniy.infrastructure.persistent.po.StrategyAward;

import java.util.List;

/**
 * StrategyAward DAO 记录一套活动中的相关奖品，包括奖品的名称，库存，归属于的策略id，每个奖品用到的规则集，位置排序
 */
@Mapper
public interface IStrategyAwardDao {
    List<StrategyAward> queryStrategyAwardList();

    List<StrategyAward> queryStrategyAwardListByStrategyId(Long strategyId);

    String queryStrategyAwardRule(StrategyAward strategyAward);

    void updateStrategyAwardStock(StrategyAward strategyAward);

    StrategyAward queryStrategyAward(StrategyAward strategyReq);
}
